<?php
    //变量
?>

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Bob`s AUto Parts - Freight Costs</title>

</head>

<body>
    <table style="border:0px; padding:3px">
        <tr>
            <td style="background:#ccc;text-align:center;">Distance</td>
            <td style="background:#ccc;text-align:center;">Cost</td>
        </tr>

<?php
    $distance = 50;
    while ($distance <=250) {
        echo "<tr>
        <td style=\"text-align: right;\">".$distance."</td>
        <td style=\"text-align: right;\">".($distance / 10)."</td>
        </tr>\n";
        $distance += 50;
    }
    
    for ($distance = 50; $distance <= 250; $distance +=50) {
        echo "<tr>
        <td style=\"text-align: right;\">".$distance."</td>
        <td style=\"text-align: right;\">".($distance / 10)."</td>
        </tr>\n";
    }
?>
    </table>
</body>
</html>
